package cn.wolfcode.wolf2w.domain;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public class TravelCondition {

    //游记的出行时间集合
    public final  static Map<Integer , TravelCondition> DAY_MAP = new HashMap<>();
    // 人均消费的集合
    public final  static Map<Integer , TravelCondition> preExpend_MAP = new HashMap<>();
    // 最小值最大值
    private int min;
    private int max;

    static {
        DAY_MAP.put(1 , new TravelCondition(0 ,3));
        DAY_MAP.put(2 , new TravelCondition(4 ,7));
        DAY_MAP.put(3 , new TravelCondition(8 ,14));
        DAY_MAP.put(4 , new TravelCondition(15 ,Integer.MAX_VALUE));

        preExpend_MAP.put(1 , new TravelCondition(1 ,999));
        preExpend_MAP.put(2 , new TravelCondition(1000 ,6000));
        preExpend_MAP.put(3 , new TravelCondition(6001,20000));
        preExpend_MAP.put(4 , new TravelCondition(20001 ,Integer.MAX_VALUE));
    }

    //初始化
    public TravelCondition (int min , int max){
        this.min = min;
        this.max = max;
    }

}
